<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="com.mod.Blogger"%>

<div class="row bg-light">
	<div class="col-sm-9 offset-sm-1 col-md-8 offset-md-2"
		style="padding: 0px;">
		<nav class="navbar navbar-expand-sm navbar-light bg-light">
			<li class="nav-item" style="list-style: none; margin-left: 0px;">
				<%
					Blogger blogger = (Blogger) session.getAttribute("blogger");
					if (blogger == null) {
						//未登录
									%> <a href="login1.html">登录</a> <%
					 	} else {
					 		//登录了
					 %> <span style="color: blue; font-weight: bold;"><%=blogger.getName()%>&nbsp;&nbsp;
					 </span>
									<a href="logout.html">注销</a> <%
					 	}
					 %>
			  </li> 
			<a href="main.html"> <img src="img/logo.png"style=" margin-left: 10px;">
			</a>

			<button class="navbar-toggler d-lg-none" type="button"
				data-toggle="collapse" data-target="#collapsibleNavId"
				aria-controls="collapsibleNavId" aria-expanded="false"
				aria-label="Toggle navigation">
				<span class="navbar-toggler-icon"></span>
			</button>
			<div class="collapse navbar-collapse" id="collapsibleNavId"
				style="padding-left: 80px;">
				<ul class="navbar-nav mr-auto mt-2 mt-lg-0">
					<li class="nav-item active"><a class="nav-link" href="PersonalResume.html">博主简介
							<span class="sr-only">(current)</span>
					</a></li>
					<li class="nav-item"><a class="nav-link" href="Arcitle.html">文章</a></li>
					<li class="nav-item"><a class="nav-link" href="#">微语</a></li>
					<li class="nav-item"><a class="nav-link" href="Album.html">相册</a></li>
					<li class="nav-item"><a class="nav-link" href="#">微视频</a></li>
					<li class="nav-item"><a class="nav-link" href="#">留言板</a></li>
					<li class="nav-item"><a class="nav-link" href="#">关于我...</a>
				</ul>
				<form class="form-inline my-2 my-lg-0">
					<input class="form-control mr-sm-2" type="text"
						placeholder="关键字...">
					<button class="btn btn-outline-success my-2 my-sm-0" type="submit">搜索</button>

				</form>

			</div>
		</nav>
	</div>
</div>